package ihm;
import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import java.awt.Font;
import javax.swing.JComboBox;
import javax.swing.JList;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;


public class ListerArtisteDansSpecialite extends JFrame implements ActionListener {

	private JPanel contentPane;
	private JLabel lblListerLesArtistes;
	private JLabel lblSpcialit;
	private JLabel lblSpcialit_1;
	private JComboBox comboBox;
	private JLabel lblArtiste;
	private JList list;
	private JButton btnAnnuler;
	private JButton btnValider;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					ListerArtisteDansSpecialite frame = new ListerArtisteDansSpecialite();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public ListerArtisteDansSpecialite() {
		setTitle("Lister les artistes d'une sp\u00E9cialit\u00E9");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 450, 300);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		lblListerLesArtistes = new JLabel("Lister les artistes d'une sp\u00E9cialit\u00E9");
		lblListerLesArtistes.setFont(new Font("Times New Roman", Font.BOLD | Font.ITALIC, 14));
		lblListerLesArtistes.setBounds(117, 29, 203, 30);
		contentPane.add(lblListerLesArtistes);
		
		lblSpcialit = new JLabel("");
		lblSpcialit.setBounds(22, 108, 46, 14);
		contentPane.add(lblSpcialit);
		
		lblSpcialit_1 = new JLabel("Sp\u00E9cialit\u00E9 :");
		lblSpcialit_1.setBounds(9, 84, 71, 14);
		contentPane.add(lblSpcialit_1);
		
		comboBox = new JComboBox();
		comboBox.setBounds(79, 83, 112, 17);
		contentPane.add(comboBox);
		
		lblArtiste = new JLabel("Artistes :");
		lblArtiste.setBounds(201, 86, 46, 14);
		contentPane.add(lblArtiste);
		
		list = new JList();
		list.setBounds(257, 85, 134, 82);
		contentPane.add(list);
		
		btnAnnuler = new JButton("Annuler");
		btnAnnuler.addActionListener(this);
		btnAnnuler.setBounds(317, 216, 89, 23);
		contentPane.add(btnAnnuler);
		
		btnValider = new JButton("Valider");
		btnValider.setBounds(200, 216, 89, 23);
		contentPane.add(btnValider);
	}
	
	public void actionPerformed(ActionEvent e)
	{
		if (e.getSource() == btnAnnuler)
		{
			dispose();
		}
	}
}
